use crate::{
    actors::{actor_center::ActorCenter, router::Router, shutdown::ShutdownActor},
    Result,
};

use xactor::{Addr, Service};

pub async fn init() -> Result<Addr<ShutdownActor>> {
    let addr = ShutdownActor::from_registry().await?;
    let _ = Router::from_registry().await?;
    let _ = ActorCenter::from_registry().await?;
    Ok(addr)
}
